import request from '@/utils/request';

export const login = (data) => {
  return request({
    url: '/console/login/verifCodeLogin',
    method: 'POST',
    data,
  })
}
export const logout = (data) => {
  return request({
    url: '/console/login/logout',
    method: 'POST',
    data,
  })
}
// 获取用户信息
export const getUserInfo = (data) => {
  return request({
    url: '/console/backUser/getUserInfo',
    method: 'POST',
    data,
  })
}
// 编辑用户信息
export const editUser = (data) => {
  return request({
    url: '/shop/backUser/editUser',
    method: 'POST',
    data,
  })
}
// 用户
export const getUserList = (data) => {
  return request({
    url: '/shop/backUser/getUserList',
    method: 'POST',
    data,
  })
}
//获取菜单
export const getMenuList = (data) => {
  return request({
    url: '/console/login/getMenuList',
    method: 'POST',
    data,
  })
}